<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>JavaPlanet Project</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
</head>
<body>
<form name="frmMantenimientoUsuario">
<div id="bg1">
	<div id="header">
		<h1><a href="#">JavaPlanet</a></h1>		
	</div>
	<!-- end #header -->
</div>
<!-- end #bg1 -->
<div id="bg2">
	<div id="header2">
		<div id="menu">
			<ul>
            	<li><a href="login.htm?metodo=home">Inicio</a></li>
            	<li><a href="estrenos.htm">Proximos Estrenos</a></li>
            	<li><a href="cartelera.htm">Ver Cartelera</a></li>
				<li><a href="pelicula.htm">Mant. Películas</a></li>
				<li><a href="cine.htm">Mant. Cines</a></li>
				<li><a href="sala.htm">Mant. Salas</a></li>
				<li><a href="producto.htm">Mant. Productos</a></li> 
				<li><a href="cartelera.htm">Generar Cartelera</a></li>          
			</ul>
		</div>
		<!-- end #menu -->

		<!-- end #search -->
	</div>
	<!-- end #header2 -->
</div>
<!-- end #bg2 -->
<div id="bg3">
	<div id="bg4">
		<div id="bg5">
			<div id="page">
				<div id="content">
				    
						<div class="post">
						<div class="title">
							<h2><a href="#">Mantenimiento de Usuarios</a></h2>
							<p>&nbsp;&nbsp;</p>
							<p><label style="color:red">${mensaje }</label></p>
						</div>
						<div class="entry">                      
						 <form action="usuario.htm" method="post" name="frm">
						 <input type="hidden" name="MODO" value="${MODO }"/>
                         <input type="hidden" name="metodo" value="grabar"/>
						  <table width="100%" height="239" align="center" >
						    <tr>
							  <td width="1">&nbsp;</td>
							  <td align="left">C&oacute;digo</td>
                              <td><input type="text" id="txtCodigo" name="txtCodigo" value="${objUsuario.coUsuario}"/></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left" colspan="2">&nbsp;</td>
							  <td width="3"></td>
							</tr> 
							<tr> 
							  <td width="1">&nbsp;</td>
							  <td align="left">Nombre</td>
                              <td><input type="text" id="txtNombre" name="txtNombre" value="${objUsuario.nombre }" /></td>
							  <td width="3"></td>                           
							  <td width="1">&nbsp;</td>
							  <td align="left">Apellidos</td>
                              <td><input type="text" id="txtApellidos" name="txtApellidos" value="${objUsuario.apellidos }" /></td>
							  <td width="3"></td>
							</tr> 
							<tr>   
							  <td width="1">&nbsp;</td>
							  <td align="left">Fecha Nacimiento</td>
                              <td><input type="text" id="txtFechaNacimiento" name="txtFechaNacimiento" value="${objUsuario.fechaNacimiento}"/></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">Estado Civil</td>
                              <td><select id="cboProvincia" name="cboProvincia">
                                <option value="0" selected="selected">Seleccionar </option>
                                <option value="S" <c:if test="${objUsuario.estadoCivil=='S'}">selected</c:if> >Soltero</option>
                                <option value="C" <c:if test="${objUsuario.estadoCivil=='C'}">selected</c:if> >Casado</option>
                                <option value="V" <c:if test="${objUsuario.estadoCivil=='V'}">selected</c:if> >Viudo</option>
                                <option value="D" <c:if test="${objUsuario.estadoCivil=='D'}">selected</c:if> >Divorciado</option>
                                <option value="Co" <c:if test="${objUsuario.estadoCivil=='Co'}">selected</c:if> >Conviviente</option>
                              </select></td>
							  <td width="3"></td>
                            </tr> 
							<tr>   
							  <td width="1">&nbsp;</td>
							  <td align="left">Tipo Documento</td>
                              <td><select id="cboTipoDocumento" name="cboTipoDocumento">
                                <option value="0" selected="selected">Seleccionar </option>
                                <c:forEach items="${listaTipoDocumento }" var="row">
                              	<option value="${row.coTipoDocumento }" <c:if test="${row.coTipoDocumento==objUsuario.tipoDocumento.coTipoDocumento}">selected</c:if> >${row.descripcion}</option>
                              	</c:forEach>
                              </select></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">Numero Documento</td>
                              <td><input type="text" id="txtNroDocumento" name="txtNroDocumento" value="${objUsuario.nroDocumento}"/></td>
							  <td width="3"></td>
                            </tr>
							<tr>   
							  <td width="1">&nbsp;</td>
							  <td align="left">Direccion</td>
                              <td><input type="text" id="txtDireccion" name="txtDireccion" value="${objUsuario.direccion}"/></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">Sexo</td>
                              <td><select id="cboSexo" name="cboSexo">
                                <option value="0" selected="selected">Seleccionar </option>
                                <option value="M" <c:if test="${objUsuario.sexo=='M'}">selected</c:if> >Masculino</option>
                                <option value="F" <c:if test="${objUsuario.sexo=='F'}">selected</c:if> >Femenino</option>
                              </select></td>
							  <td width="3"></td>
                            </tr>
							<tr>   
							  <td width="1">&nbsp;</td>
							  <td align="left">Telefono</td>
                              <td><input type="text" id="txtTelefono" name="txtTelefono" value="${objUsuario.telefono}"/></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">&nbsp;</td>
                              <td>&nbsp;</td>
							  <td width="3"></td>
                            </tr>
							<tr>   
							  <td width="1">&nbsp;</td>
							  <td align="left">Perfil</td>
                              <td><select id="cboPerfil" name="cboPerfil">
                                <option value="0" selected="selected">Seleccionar </option>
                                <c:forEach items="${listaPerfiles }" var="row">
                              	<option value="${row.coPerfil}" <c:if test="${row.coPerfil==objUsuario.perfil.coPerfil}">selected</c:if> >${row.descripcion}</option>
                              	</c:forEach>
                              </select></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">Usuario</td>
                              <td><input type="text" id="txtUsuario" name="txtUsuario" value="${objUsuario.usuario}"/></td>
							  <td width="3"></td>
                            </tr>
							<tr>   
							  <td width="1">&nbsp;</td>
							  <td align="left">Clave</td>
                              <td><input type="password" id="txtClave" name="txtClave" value="${objUsuario.clave}"/></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">Confirmar Clave</td>
                              <td><input type="password" id="txtClave2" name="txtClave2" value="${objUsuario.clave}"/></td>
							  <td width="3"></td>
                            </tr>
						  </table>
						 <tr>   
							  <td width="1">&nbsp;</td>
							  <td align="left">Estado</td>
                              <td><select id="cboEstado" name="cboEstado">
                                <option value="" selected="selected">Seleccionar </option>
                                <option value="A" <c:if test="${objUsuario.estadoUsuario=='A'}">selected</c:if> >Activo</option>
                                <option value="I" <c:if test="${objUsuario.estadoUsuario=='I'}">selected</c:if> >Inactivo</option>
                              </select></td>
							  <td width="3"></td>
							  <td width="1">&nbsp;</td>
							  <td align="left">&nbsp;</td>
                              <td>&nbsp;</td>
							  <td width="3"></td>
                            </tr>
					      </table>
						  <table width="100%" align="center" height="40">
						  <tr>
						    <td align="right" nowrap="nowrap">
							  <input align="right" type="submit" id="btnGrabar" name="btnGrabar" value="Grabar" />
							  <input align="right" type="button" id="btnSalir" name="btnSalir" value="Salir" onclick="window.location='cine.htm'" /></td>
						  </tr>
					      </table>
					   
                            </form>
					   </div>
      				   </div>
                   
				</div>
				<!-- end #content -->
				<div style="clear: both; height: 40px;">&nbsp;</div>
			</div>
			<!-- end #page -->
		</div>
	</div>
</div>
<!-- end #bg3 -->
<div id="footer">
	<p>(c) 2008 Sitename.com. Design by <a href="http://www.nodethirtythree.com/">nodeThirtyThree</a> + <a href="http://www.freewpthemes.net/">Free CSS Templates</a></p>
</div>
<!-- end #footer -->
</form>
</body>
</html>